using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;

namespace GifJoinTool
{
    class Program
    {
        static void Main(string[] args)
        {
            List<Image> images = new List<Image>();

            FileInfo fi = new FileInfo(args[0]);

            Image image = Image.FromFile(args[0]);

            Bitmap b = new Bitmap(image.Width * args.Length, image.Height);

            for (int i = 0; i < args.Length; i ++)
            {
                image = Image.FromFile(args[i]);

                Graphics g = Graphics.FromImage(b);

                g.DrawImage(image, i * image.Width, 0);
            }
            b.Save(fi.Directory.FullName+"\\output.gif");
        }
    }
}
